import request from '@/utils/request'
import API from './constants'

// 查询所有分类数据
export const getCategory = () => request({
  url: API.CATEGORY_API,
})

export const getSubCategories = cid => request({
  url: API.SUBCATEGORY_API + '/' + cid,
})

export const getGengduo = cid => request({
  url: API.GENGDUO_API + '/' + cid,
})
